<include file="Public::header" />
            <div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>用户管理</h3>
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
						<table>
							<thead>
								<tr>
								   <th><input class="check-all" type="checkbox" /></th>
                                   <th>
                                        <div  style="position:relative;" id="recommend">
                                             所属分类
                                            <img style="padding:2px 0 0 3px;" src="__APP__/resources/image/console/icons/down.png" width="10" height="10" />
                                            <div style="display:none;position:absolute;top:20px;left:1px; width:100px; background:#fff;border:1px solid #ccc">
                                                <p><a style="font-size:12px;font-weight:normal;line-height:16px; padding:5px 0 0 10px;" href="{:U('main/index',array('cate'=>0))}">全部</a></p>
                                                
                                            </div>
                                        </div>
                                  </th>
                                   <th>标题</th>
								   <th>点击数</th>
								   <th>添加时间</th>
                                   <th>更新时间</th>
                                   <th>操作</th>
								</tr>
							</thead>
                            
                            <tfoot>
								<tr>
									<td colspan="6">
										<!--<div class="bulk-actions align-left">
											<select name="dropdown">
												<option selected="selected">选择</option>
												<option value="del">删除</option>
												<option value="recommendadd">推荐</option>
											</select>
											<a class="button" href="javascript:void(0)" id="selected">确定</a>
										</div>-->
										
										<div class="pagination">
                                            {$data.page_list}
											<!--<a href="#" title="First Page">&laquo; First</a><a href="#" title="Previous Page">&laquo; Previous</a>
											<a href="#" class="number" title="1">1</a>
											<a href="#" class="number" title="2">2</a>
											<a href="#" class="number current" title="3">3</a>
											<a href="#" class="number" title="4">4</a>
											<a href="#" title="Next Page">Next &raquo;</a><a href="#" title="Last Page">Last &raquo;</a>-->
										</div> <!-- End .pagination -->
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
						    
							<tbody>
                                <volist name="data.data_list" id="vo">
                                    <tr>
                                        <td><input type="checkbox" name="mid[]" value="{$vo.aid}"/></td>
                                        <td><a href="{:U('Home-article/list',array('cid'=>$vo['cid']))}" title="title">{$vo.cname}</a></td>
                                        <td><a href="{:U('Home-article/'.$vo['aid'])}" title="title">{$vo.title}</a></td>
                                        <td>{$vo.click_num}</td>
                                        <td>{:date('Y-m-d H:i',$vo['add_time'])}</td>
                                        <td>{:date('Y-m-d H:i',$vo['update_time'])}</td>
                                        <td>
                                            <!-- Icons -->
                                             <!--<a href="{:U('main/edit')}" title="Edit"><img src="__APP__/resources/image/console/icons/pencil.png" alt="Edit" /></a>-->
                                             <a href="{:U('main/articleEdit',array('aid'=>$vo['aid']))}" title="修改"><img src="__APP__/resources/image/console/icons/hammer_screwdriver.png" alt="Edit Meta" /></a>                                             
                                             <a href="javascript:;" title="删除" class="articleDel" aid="{$vo.aid}"><img src="__APP__/resources/image/console/icons/cross.png" alt="Delete" /></a>
                                        </td>
                                    </tr>
                                </volist>
							</tbody>
						</table>
					</div> <!-- End #tab1 -->
				</div> <!-- End .content-box-content -->
			</div> <!-- End .content-box -->
<include file="Public::footer" />
<script type="text/javascript">
    $('.articleDel').click(function(){
        var $aid = $(this).attr('aid');
        var $this_dom = $(this).parents('tr');
        $.post("{:U('main/articleDel')}",{ 'aid':$aid },function(data){
            if(data == 1){
                $this_dom.remove();
            }else{
                alert('删除失败');
            }
        },'json');
    })
</script>
